<#if parameters.pageSize?exists>
	<#assign pageSize=parameters.pageSize/>
	<#assign totalNum=parameters.totalNum/>
	<#assign currentPageNum=pageNum?default(1)/>
	<#if currentPageNum <= 0>
		<#assign currentPageNum=1/>
	</#if>
	<#if totalNum%pageSize == 0>
		<#assign totalPageNum=totalNum/pageSize/>
	<#else>
		<#assign totalPageNum=(totalNum/pageSize)?int + 1/>
	</#if>
	
	<#assign prePageNum=currentPageNum-1/>

	<#assign nextPageNum=currentPageNum+1/>
		<
		<a onclick="tableeditor.goToPage(1);">${parameters.__i18n__.getText("message.pageFirstPage")}</a>
		/
		<#if (prePageNum > 0)>
			<a onclick="tableeditor.goToPage(${prePageNum});">${parameters.__i18n__.getText("message.pagePreviousPage")}</a>
		<#else>
			${parameters.__i18n__.getText("message.pagePreviousPage")}
		</#if>			
		>
		<span id="pageNumList">
		<#if currentPageNum<=5>
			<#list 1..10 as i>
				<#if i<=totalPageNum>
					<a <#if i==currentPageNum>class="currentPage"</#if> onclick="tableeditor.goToPage(${i});">${i}</a><#rt/>
					<#if i!=totalPageNum&&i!=10>
						<#lt/>,<#rt/>
					</#if>
				</#if>
			</#list>
		<#else>
			<#list (currentPageNum-5)..(currentPageNum+5) as i>
				<#if i<=totalPageNum>
					<a <#if i==currentPageNum>class="currentPage"</#if> onclick="tableeditor.goToPage(${i});">${i}</a><#rt/>
					<#if i!=totalPageNum&&i!=currentPageNum+5>
						<#lt/>,<#rt/> 
					</#if>
				</#if>
				
			</#list>
		</#if>
		</span>
		<
		<#if (nextPageNum <= totalPageNum && totalPageNum != 0)>
			<a onclick="tableeditor.goToPage(${nextPageNum});">${parameters.__i18n__.getText("message.pageNextPage")}</a>
		<#else>
			${parameters.__i18n__.getText("message.pageNextPage")}
		</#if>
		/
		<a onclick="tableeditor.goToPage(${totalPageNum});">${parameters.__i18n__.getText("message.pageLastPage")}</a>
		>&lt; ${parameters.__i18n__.getText("message.pageTotalNum")}:<span id="${parameters.id}TotalNum">${totalNum}</span>/${parameters.__i18n__.getText("message.pageTotalPageNum")}:<span id="${parameters.id}TotalPageNum">${totalPageNum}</span> >
</#if>
